<template>
	<view class="address_">
		<view class="address-list">
			<view class="address-item bgc" v-for="(item,i) in addressList" :key="i">
				<view class="msg-left">
					<view class="consignee-phone">
						收货人：{{ item.name }}
						<text class="phone">{{ item.phone }}</text>
					</view>
					<view class="address">
						收货地址：{{ item.address }}
					</view>
				</view>
				<view class="icon-right">
					<image class="icon-img" src="../../static/img/com.png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="add-address">
			<view class="add-address-btn">
				<image class="add-img" src="../../static/img/add.png" mode=""></image>
				新增收货地址
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				addressList: [{
						name: '李海欣',
						phone: '13688888888',
						address: '四川省-成都市-龙泉驿区-大面镇成龙大道师大现代花园12栋2单元'
					},
					{
						name: '李海欣',
						phone: '13688888888',
						address: '四川省-成都市-龙泉驿区-大面镇成龙大道师大现代花园12栋2单元'
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	page {
		height: 100%;
	}

	.bgc {
		background-color: #fff;
	}
	.address_ {
		padding-bottom: 120rpx;
		padding-top: 15rpx;
	}
	.address-list {
		
		.address-item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 45rpx 33rpx 30rpx 33rpx;
			box-sizing: border-box;
			margin-bottom: 15rpx;

			.msg-left {
				.consignee-phone {
					font-size: 32rpx;
					color: #333333;

					.phone {
						margin-left: 70rpx;
						font-size: 28rpx;
						color: #999999;
					}
				}

				.address {
					width: 495rpx;
					margin-top: 38rpx;
					font-size: 26rpx;
					line-height: 36rpx;
					color: #666666;
				}
			}

			.icon-right {
				.icon-img {
					width: 36rpx;
					height: 34rpx;
				}
			}
		}
	}

	.add-address {
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 9999;
		margin: 0 auto;
		width: 100%;
		padding: 0 18rpx;
		box-sizing: border-box;
		background-color: #f5f5f5;
		.add-address-btn {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 100rpx;
			background-color: #c60122;
			border-radius: 50rpx;
			font-size: 36rpx;
			line-height: 72rpx;
			letter-spacing: 4rpx;
			color: #ffffff;
			.add-img {
				margin-right: 20rpx;
				width: 32rpx;
				height: 32rpx;
			}
		}

	}
</style>
